import request from '@/utils/request'
// 数据级别排行
export function selectGradeList(query) {
  return request({
    url: '/marketing/BiShopThreeSource/selectGradeList',
    method: 'get',
    params: query
  })
}
// 店铺列表
export function selectShopMarketingRank(query) {
  return request({
    url: '/marketing/BiShopMarketingDwd/selectShopMarketingRank',
    method: 'get',
    params: query
  })
}


// 多商品单指标对比
export function selectShopStatistics(query) {
  return request({
    url: '/marketing/BiShopMarketingDwd/selectShopStatistics',
    method: 'get',
    params: query
  })
}

// 多商品单指标对比
export function comparisonStatisticsPro(query) {
  return request({
    url: '/marketing/BiProductMarketingDwd/comparisonStatistics',
    method: 'get',
    params: query
  })
}
// 单品多指标趋势图
export function selectShopSourceStatistics(query) {
  return request({
    url: '/marketing/BiShopThreeSource/selectShopSourceStatistics',
    method: 'get',
    params: query
  })
}
// 数据排行
export function selectProductMarketingRank(query) {
  return request({
    url: '/marketing/BiShopThreeSource/selectProductMarketingRank',
    method: 'get',
    params: query
  })
}

// 查询三级店铺流量来源数据日报列表
export function listBiShopThreeSource(query) {
  return request({
    url: '/marketing/BiShopThreeSource/list',
    method: 'get',
    params: query
  })
}

// 查询三级店铺流量来源数据日报详细
export function getBiShopThreeSource(id) {
  return request({
    url: '/marketing/BiShopThreeSource/' + id,
    method: 'get'
  })
}

// 新增三级店铺流量来源数据日报
export function addBiShopThreeSource(data) {
  return request({
    url: '/marketing/BiShopThreeSource',
    method: 'post',
    data: data
  })
}

// 修改三级店铺流量来源数据日报
export function updateBiShopThreeSource(data) {
  return request({
    url: '/marketing/BiShopThreeSource',
    method: 'put',
    data: data
  })
}

// 删除三级店铺流量来源数据日报
export function delBiShopThreeSource(id) {
  return request({
    url: '/marketing/BiShopThreeSource/' + id,
    method: 'delete'
  })
}
